home *** CD-ROM | disk | FTP | other *** search
-
-
-
- xxxxffffssss____ccccooooppppyyyy((((1111MMMM)))) xxxxffffssss____ccccooooppppyyyy((((1111MMMM))))
-
-
-
- NNNNAAAAMMMMEEEE
- xfs_copy - copy the contents of an XFS filesystem
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- xxxxffffssss____ccccooooppppyyyy [ ----dddd ] device|file device1 [ device2 device3 ... ]
- xxxxffffssss____ccccooooppppyyyy [ ----dddd ] device|file file1
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _x_f_s__c_o_p_y copies an XFS filesystem to one or more targets in parallel (see
- _x_f_s(4)). The first (source) argument must be the pathname of the device
- or file containing the XFS filesystem. The remaining arguments specify
- one or more target devices or a filename. If the pathnames specify
- devices, a copy of the source XFS filesystem is created on each device.
- If any of the source or target device names specify devices that are not
- raw devices, _x_f_s__c_o_p_y attempts to locate the raw device corresponding to
- the specified device and use the raw device instead.
-
- If there is only one target, that target can be the name of a regular
- file in which case an image of the source XFS filesystem is created in
- that file. If the file does not exist, _x_f_s__c_o_p_y creates the file. The
- length of the resulting file is equal to the size of the source
- filesystem. However, if the file is created on an XFS filesystem, the
- file consumes roughly the amount of space actually used in the source
- filesystem by the filesystem and the XFS log. The space saving is
- because _x_f_s__c_o_p_y seeks over free blocks instead of copying them and the
- XFS filesystem supports sparse files efficiently.
-
- _x_f_s__c_o_p_y can only be used to copy unmounted filesystems. Otherwise, the
- generated filesystem(s) would be inconsistent or corrupt. Some versions
- of _x_f_s__c_o_p_y may print a message that they have detected a mounted
- filesystem, but are continuing the attempt to copy, and then issue a
- message that they are aborting. This is misleading, but not incorrect.
- Unmount the filesystem and then issue the command. This means that if
- you want to copy the root (/) filesystem, you must first load the
- miniroot, then unmount the root with the _i_n_s_t command
-
- admin umount /root
-
- and then do the copy.
-
- _x_f_s__c_o_p_y does not alter the source filesystem in any way. Each new
- (target) filesystem is identical to the original filesystem except that
- new filesystems each have a new unique filesystem identifier (UUID).
- Therefore, if both the old and new filesystems will be used as separate
- distinct filesystems, _x_f_s__c_o_p_y or _x_f_s_d_u_m_p/_x_f_s_r_e_s_t_o_r_e should be used to
- generate the new filesystem(s) instead of _d_d(1M) or other programs that
- do block-by-block disk copying.
-
- The ----dddd (duplicate) option can be used if a true clone is desired. This
- should be done only if the new filesystem will be used as a replacement
- for the original filesystem (such as in the case of disk replacement).
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- xxxxffffssss____ccccooooppppyyyy((((1111MMMM)))) xxxxffffssss____ccccooooppppyyyy((((1111MMMM))))
-
-
-
- _x_f_s__c_o_p_y uses synchronous writes to ensure that write errors are
- detected. _x_f_s__c_o_p_y also uses _s_p_r_o_cs (see _s_p_r_o_c(2)) to perform
- simultaneous parallel writes. Therefore, _p_s(1) reports multiple copies
- of _x_f_s__c_o_p_y while the copy is in progress. _x_f_s__c_o_p_y creates one
- additional _s_p_r_o_c for each target to be written. All _s_p_r_o_cs die if
- _x_f_s__c_o_p_y terminates or aborts.
-
- _x_f_s__c_o_p_y does not copy XFS filesystems that have a real-time section or
- XFS filesystems with external logs. In both cases, _x_f_s__c_o_p_y aborts with
- an error message.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- _x_f_s__c_o_p_y reports errors to both stderr and in more detailed form to a
- generated log file whose name is of the form
- /_u_s_r/_t_m_p/_x_f_s__c_o_p_y._l_o_g.??????. If _x_f_s__c_o_p_y detects a write error on a
- target, the copy of that one target is aborted and an error message is
- issued to both stderr and the logfile, but the rest of the copies
- continue. When _x_f_s__c_o_p_y terminates, all aborted targets are reported to
- both stderr and the logfile. In some cases, _x_f_s__c_o_p_y may report the
- message
-
- xfs_copy: couldn't initialize simulation library
-
- following another error message. This message is sometimes of use when
- debugging problems, and should normally be ignored.
-
- If all targets abort or if there is an error reading the source
- filesystem, _x_f_s__c_o_p_y immediately aborts.
-
- _x_f_s__c_o_p_y returns an exit code of 0 if all targets are successfully copied
- and an exit code of 1 if any target fails.
-
- BBBBUUUUGGGGSSSS
- When moving filesystems from one disk to another, if the original
- filesystem is less than 4 Gbytes long and the new filesystem will larger,
- we recommend that _m_k_f_s and _x_f_s_d_u_m_p/_x_f_s_r_e_s_t_o_r_e be used instead of using
- _x_f_s__c_o_p_y and _x_f_s__g_r_o_w_f_s. The filesystem layout resulting from using
- _x_f_s__c_o_p_y/_x_f_s__g_r_o_w_f_s is almost always worse than the result of using
- _m_k_f_s/_x_f_s_d_u_m_p/_x_f_s_r_e_s_t_o_r_e but in the case of small filesystems, the
- differences can have a significant performance impact.
-
- _x_f_s__c_o_p_y does not copy XFS filesystems with real-time partitions or
- external logs.
-
- If the source filesystem is bigger than the target partition, the copy
- may succeed if the blocks at the end of the source filesystem are not in
- use but the generated copy will not be a valid filesystem.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- mkfs_xfs(1M), xfsdump(1M), xfsrestore(1M), xfs(4), xlv(7M).
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-